#include "rk_defines.h"
#include "rk_debug.h"
#include "../../include/key/taiic_key.h"
#include<stdio.h>
#include <unistd.h>

static void power_callback(int power_cap) //电量查询回调
{

    printf("power is %d====\n", power_cap);

}

int main(int argc, const char **argv)
{

//电量查询检测回调
    taiic_batt_power_registers(power_callback);

    for(;;)
    {
        sleep(1);
    }

    return 0;
}